@import "@/assets/css/var.scss";

// .song-container {
//   position: fixed;
//   display: flex;
//   flex-direction: column;

//   .song-pic {
//     height: 300px;
//     width: 300px;
//     border: 4px solid white;
//     border-radius: 12px;
//   }

//   .song-info {
//     width: 300px;
//     li {
//       width: 100%;
//       line-height: 40px;
//       font-size: 18px;
//       padding-left: 10%;
//     }
//   }
// }

.lyric-container {
  font-family: $font-family;
  width: 700px;
  .song-lyric {
    position: relative;
    min-height: 400px;
    padding: 30px 0;
    overflow: hidden;
    border-radius: 12px;
    // background-color: $color-light-grey;
    .has-lyric {
      position: absolute;
      transition: all 1s;
      li {
        width: 100%;
        height: 40px;
        text-align: center;
        font-size: 14px;
        line-height: 40px;
      }
    }
    .no-lyric {
      position: absolute;
      margin: 100px 0;

      span {
        font-size: 18px;
        text-align: center;
      }
    }
  }
}

.lyric-fade-enter,
.lyric-fade-leave-to {
  transform: translateX(30px);
  opacity: 0;
}

.lyric-fade-enter-active,
.lyric-fade-leave-active {
  transition: all 0.3s ease;
}

@media screen and (max-width: $sm) {
  .container {
    padding: 20px;
  }
  .song-container {
    display: none;
  }
}

/////////////////////////
///
*,
*:before,
*:after {
  box-sizing: border-box;
}

.music-player {
  background-color: #fff;
  height: 370px;
  padding: 40px 250px 40px 40px;
  position: absolute;
  text-align: right;
  z-index: 3;
}

.player-content-container {
  transform: translateY(-50%);
  top: 50%;
  position: relative;
}

.artist-name {
  font-size: 28px;
  font-weight: normal;
  margin: 0 0 0.75em 0;
}

.album-title {
  font-weight: 200;
  font-size: 24px;
  margin: 0 0 1.75em 0;
}

.song-title {
  font-size: 18px;
  font-weight: 200;
  margin: 0 0 1.5em 0;
}

.album {
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.65);
  height: 315px;
  margin-left: 250px;
  margin-top: 27px;
  position: relative;
  width: 315px;
  z-index: 10;
}

.album-art {
  background: #fff
    url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/incubus-make-yourself.jpg")
    center/cover no-repeat;
  height: 315px;
  position: relative;
  width: 315px;
  z-index: 10;
}

.vinyl {
  animation: spin 2s linear infinite;
  transition: all 500ms;
  background-image: url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/vinyl.png"),
    url("https://s3-us-west-2.amazonaws.com/s.cdpn.io/83141/incubus-make-yourself.jpg");
  background-position: center, center;
  background-size: cover, 40% auto;
  background-repeat: no-repeat;
  border-radius: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
  height: 300px;
  left: 0;
  position: absolute;
  top: 5px;
  width: 300px;
  z-index: 5;
  will-change: transform, left;
}

.is-playing .vinyl {
  left: 52%;
}

.music-player-controls {
  text-align: center;
}

[class^="control-"]:hover {
  filter: brightness(85%);
  cursor: pointer;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.total-container {
  padding-top: 230px;
  transform: translateY(-25px);
  height: 100vh;
  // background-color: red;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.song-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 50%;
  height: 20vh;
  gap: 20px;
  margin-left: auto;
}
.lyric-container {
  min-height: 400px;
}
.bar1 {
  display: flex;
  gap: 200px;
}
.bar2 {
  display: flex;
  justify-content: center;
  margin-top: 10vh;
  padding-bottom: 100px;
}
.down {
  width: 30%;
  margin-right: 30vh;
}
.likeList {
  width: 30%;
}

.song-title {
  display: flex;
  align-items: center;
  justify-content: center;
}
